#pragma once

#include "Common/CTimer.h"
#include "Graphics/GraphicsMember.h"
#include "Common/CException.h"

enum class GameDir
{
	left, up, right, down
};

class Spaceship : public GraphicsMember
{
public:
	Spaceship(Graphics& graphics, int width, int height);
	~Spaceship();

	void Keydown();
	void Run(float ti);
	void Draw(Graphics& graphics);
	void Coordinate(Graphics& graphics);

private:
	float _x;
	float _y;
	float _z;
	bool _run;
	GameDir _GameDir;
	wrl::ComPtr<IDirect3DVertexBuffer9> _VertexBuffer;
	wrl::ComPtr<IDirect3DTexture9> _Texture;
	CTimer _Timer;

	wrl::ComPtr<IDirect3DVertexBuffer9> _Line;
};

